package com.xwj.entity;

import org.joda.time.DateTime;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.UUID;

/**
 * Created by xuweijie on 2018/1/18.
 */
public class RaCloudHourse implements Serializable {
    private static final long serialVersionUID = 1390598694362516040L;
    private String id;
    private int cloudId;//云图Id
    private String name;//名称
    private String address;//地址
    private int status;//状态
    private String createTime;//创建时间
    private String del_flag;//删除状态
    private BigDecimal lon;//经度
    private BigDecimal lat;//纬度

    private String statusStr;//状态名

    public RaCloudHourse() {
    }

    public RaCloudHourse(int cloud, String name, String address, BigDecimal lon, BigDecimal lat) {
        this.id = UUID.randomUUID().toString().replaceAll("-", "");
        this.cloudId = cloud;
        this.name = name;
        this.address = address;
        this.lon = lon;
        this.lat = lat;
        this.del_flag = "0";
        this.createTime = new DateTime().toString("yyyy-MM-dd HH:mm:ss");
        this.status = 0;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getCloudId() {
        return cloudId;
    }

    public void setCloudId(int cloudId) {
        this.cloudId = cloudId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getDel_flag() {
        return del_flag;
    }

    public void setDel_flag(String del_flag) {
        this.del_flag = del_flag;
    }

    public String getStatusStr() {
        return statusStr;
    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }

    public BigDecimal getLon() {
        return lon;
    }

    public void setLon(BigDecimal lon) {
        this.lon = lon;
    }

    public BigDecimal getLat() {
        return lat;
    }

    public void setLat(BigDecimal lat) {
        this.lat = lat;
    }

    @Override
    public String toString() {
        return "RaCloudHourse{" +
                "id='" + id + '\'' +
                ", cloudId=" + cloudId +
                ", name='" + name + '\'' +
                ", address='" + address + '\'' +
                ", status=" + status +
                ", createTime='" + createTime + '\'' +
                ", del_flag='" + del_flag + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                ", statusStr='" + statusStr + '\'' +
                '}';
    }
}
